﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DepartmentsChecking.ascx.cs" Inherits="DepartmentsChecking" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataSourceID="ObjectDataSource_dpt" OnRowDataBound="GridView1_RowDataBound" 
    OnRowCommand="GridView1_RowCommand" OnRowUpdating="GridView1_RowUpdating" 
    DataKeyNames="Id">
    <Columns>
        <asp:BoundField DataField="Id" HeaderText="部门编号" ReadOnly="True" />
        <asp:BoundField DataField="DepartmentName" HeaderText="部门名称" ReadOnly="True" />
        <asp:BoundField DataField="DepartmentScore" HeaderText="部门自评分" ReadOnly="True" />
        <asp:BoundField DataField="ScoreBySegment" HeaderText="部门评分" />
        <asp:BoundField DataField="Name" HeaderText="部门主管" ReadOnly="True" />
        <asp:BoundField DataField="SelfScore" HeaderText="主管自评分" ReadOnly="True" />
        <asp:BoundField DataField="LeaderScore" HeaderText="领导评分" />
        <asp:CommandField ShowEditButton="True" />
    </Columns>
    <FooterStyle CssClass="FooterStyle" />
    <RowStyle CssClass="RowStyle" />
    <EmptyDataRowStyle CssClass="EmptyRowStyle" />
    <PagerStyle CssClass="PagerStyle" />
    <SelectedRowStyle CssClass="SelectedRowStyle" />
    <HeaderStyle CssClass="HeaderStyle" />
    <EditRowStyle CssClass="EditRowStyle" Wrap="True" />
    <AlternatingRowStyle CssClass="AltRowStyle" />
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource_dpt" runat="server" SelectMethod="GetLeaders" TypeName="StaffDb" UpdateMethod="UpdateLeaders">
</asp:ObjectDataSource>
